import { createSSRApp } from "vue";
import App from "./App.vue";
// 工具类
import utils from "@/utils/utils"
// uView组件库
import uviewPlus from 'uview-plus'
// 导入 pinia 实例
import pinia from './store'

import {config} from "@/config/config"

export function createApp() {
  const app = createSSRApp(App);
  app.use(uviewPlus)
  app.use(pinia)
  app.config.globalProperties.$utils = utils
  app.config.globalProperties.$imageUrl = config.imageUrl
  return {
    app,
  };
}
